<?php defined('_JEXEC') or die('Restricted access'); ?>

<?php
	// clean item data
	JFilterOutput::objectHTMLSafe( $this->user, ENT_QUOTES, '' );

	if ($this->user->get('lastvisitDate') == "0000-00-00 00:00:00") {
		$lvisit = JText::_( 'Never' );
	} else {
		$lvisit	= JHTML::_('date', $this->user->get('lastvisitDate'), '%Y-%m-%d %H:%M:%S');
	}
?>
		<fieldset class="adminform">
		<legend>Szczegóły konta</legend>
			<table class="admintable" cellspacing="1">
				<tr>
					<td class="key">
						<label for="username">
							<?php echo JText::_( 'Username' ); ?>
						</label>
					</td>
					<td>
						<?php echo $this->user->get('username'); ?>
					</td>
				</tr>
				<tr>
					<td valign="top" class="key">
						<label for="gid">
							<?php echo JText::_( 'Group' ); ?>
						</label>
					</td>
					<td>
						<?php echo $this->user->get('usertype'); ?>       	       
					</td>
				</tr>
				<tr>
					<td class="key">
						<?php echo 'Data pierwszej rejestracji'; ?>
					</td>
					<td>
						<?php echo $this->user->get('pierwszaRejest'); ?>
					</td>
				</tr>
				<tr>
					<td class="key">
						<?php echo JText::_( 'Last Visit Date' ); ?>
					</td>
					<td>
						<?php echo $lvisit; ?>
					</td>
				</tr>
			</table>
		</fieldset>

<?php if ($this->user->get('id') && $delete) { ?>
	<br />
	<fieldset class="adminform">
	<legend>Konto zostało usunięte</legend>
		<table class="admintable" cellspacing="1">
			<tr>
				<td class="key">
					w dniu
				</td>
				<td>
					<?php echo $this->user->registerDate; ?>
				</td>
			</tr>			
			<tr>
				<td class="key">
					przez
				</td>
				<td>
					<?php echo $this->user->whoRegister; ?>
				</td>
			</tr>	
		</table>
	</fieldset>
<?php } ?>
